package com.cloudsea.yunhaiserver;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.EnableScheduling;


@Configuration
@MapperScan({"com.cloudsea.yunhaistores.mapper","com.cloudsea.yunhaianalysis.mapper"})
@SpringBootApplication(scanBasePackages = {
        "com.cloudsea.yunhaiserver",
        "com.cloudsea.yunhaistores",
        "com.cloudsea.yunhaiutils",
        "com.cloudsea.yunhaianalysis"
})
@EnableScheduling //开启Spring的定时任务功能
public class YunhaiEatApplication {

    public static void main(String[] args) {
        SpringApplication.run(YunhaiEatApplication.class, args);
    }

}
